"""changer_mes URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path,re_path
from django.views.static import serve
from changer_mes import settings
from mes import views
from mes import views_auto_sop
from mes import JD_BarcodePrint
from mes import JD_BarcodePrint1
from mes import test
from changer_mes.settings import MEDIA_ROOT
from mes import out_import_excel
urlpatterns = [
    re_path(r'^media/(?P<path>.*)$', serve, {"document_root": MEDIA_ROOT}),
    path('admin/', admin.site.urls),
    #--------------产线每日生产数据可视化页面-----------
    path('test02/',views.test),
    #------------------自动SOP测试页面---------------
    path('auto_sop/',views_auto_sop.test2),
    path('auto_sop_table/',views_auto_sop.test3),
    #----------------精雕打印出货模板页面--------------
    path('JD_BarcodePrint/',JD_BarcodePrint.JD_BarcodePrint),
    path('JD_BarcodePrint1/',JD_BarcodePrint1.print),
    path('get_asp_data/',test.get_asp_data),
    #----------------NEXRAY综合管理系统页面------------------
    path('all/',test.return_static_html),
    #----------------------峰米数据可视化页面--------------
    path('fengmi_data_view/',test.fengmi_data_view),
    #-----------------出货记录excel导入---------------------
    path('upload/', out_import_excel.upload),
    path('upload1/', out_import_excel.excel_upload),


]
